package com.hxzy.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.hxzy.system.dto.AdminLoginDTO;
import com.hxzy.system.dto.SysUserDTO;
import com.hxzy.system.dto.SysUserSearchDTO;
import com.hxzy.system.entity.SysUser;
import com.hxzy.system.vo.SysUserVO;
import com.hxzy.system.vo.AdminLoginVO;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user(医生信息表)】的数据库操作Service
* @createDate 2023-03-10 11:56:11
*/
public interface SysUserService extends IService<SysUser>  {

    /**
     * 后台用户登录
     * @param adminLoginDTO
     * @return
     */
    AdminLoginVO  login(AdminLoginDTO adminLoginDTO);

    /**
     * 分页查询
     * @param sysUserDTO
     * @return
     */
    List<SysUserVO> search(SysUserDTO sysUserDTO);

    /**
     * 禁用用户状态
     * @param ids
     * @return
     */
    int removeByIds(Long[] ids);


    /**
     * 修改用户状态
     * @param dto
     * @return
     */
    int updateStatus(SysUserSearchDTO dto);

    /**
     * 根据用户名查询信息
     * @param username
     * @return
     */
    SysUserVO findUserByName(String username);
}
